import { PropType } from 'vue'
import { commonDisabledType, commonSizeType, commonColorType } from '../common'

export const ButtonProps = {
  disabled: {
    type: Boolean as PropType<commonDisabledType>,
    default: false
  },
  size: {
    type: String as PropType<commonSizeType>,
    default: 'medium'
  },
  type: {
    type: String as PropType<commonColorType>,
    default: ''
  },
  icon: String,
  round: {
    type: Boolean,
    default: false
  },
  circle: {
    type: Boolean,
    default: false
  },
  loading: {
    type: Boolean,
    default: false
  },
  onClick: Function as PropType<(e:MouseEvent)=>void>
}
